//
//  MXSMessageVC.swift
//  weibo
//
//  Created by 孙飞 on 15/12/5.
//  Copyright © 2015年 Sunfei. All rights reserved.
//

import UIKit

class MXSMessageVC: MXSStateTableVC {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if !isUserLogin{
            
            return
        }
        
        setupUI()
        
    }
    
    func setupUI(){
        
        navigationItem.leftBarButtonItem = UIBarButtonItem.init(title: "发现群", target: self, action: "discoverGroup")
    }
    
    
    func discoverGroup(){
        
        let discover = MXSSearchVC()
        navigationController?.pushViewController(discover, animated: true)
    }

}
